package cn.iotab.iotkit.transport.api.common.message;

import cn.iotab.iotkit.transport.api.common.message.msg.CommonPayload;
import cn.iotab.iotkit.transport.api.common.message.msg.down.CloseSessionCmd;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 发送给Transport的消息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ToTransportMessage implements TransportMsg {

    /**
     * 基本信息，必带
     */
    private String sessionId;

    //core 主动关闭session，踢下线
    private CloseSessionCmd closeSessionCmd;

    private CommonPayload toDeviceRequest;

    private CommonPayload toDeviceResponse;

}
